package com.dhcc.cdc.sys.entity;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
 * 数据接收日志
 * @TableName t_cdc_data_receive_log
 */
@TableName(value ="t_cdc_data_receive_log")
public class DataReceiveLogEntity {

    private long id;
    /**
     * 数据接收类型
     */
    private String action;

    /**
     * 数据接收内容
     */
    private String message;

    /**
     * 错误内容
     */
    private String error;
    /**
     * 是否已读
     */
    private int isRead;

    /**
     * 接收时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;

    /**
     * 数据接收类型
     */
    public String getAction() {
        return action;
    }

    /**
     * 数据接收类型
     */
    public void setAction(String action) {
        this.action = action;
    }

    /**
     * 数据接收内容
     */
    public String getMessage() {
        return message;
    }

    /**
     * 数据接收内容
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 错误内容
     */
    public String getError() {
        return error;
    }

    /**
     * 错误内容
     */
    public void setError(String error) {
        this.error = error;
    }

    /**
     * 接收时间
     */
    public Date getReceiveTime() {
        return receiveTime;
    }

    /**
     * 接收时间
     */
    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public int getIsRead() {
        return isRead;
    }
    public void setIsRead(int isRead) {
        this.isRead = isRead;
    }

}